<?php

namespace Pinenut\User\OAuth2;

abstract class Config extends \Pinenut\Config {
	const CLIENTID = 'clientId';
	const CLIENTSECRET = 'clientSecret';
	const AUTHORIZEURL = 'authorizeUrl';
	const TOKENURL = 'tokenUrl';
	const SCOPE = 'scope';
	const REDIRECTURL = 'redirectUrl';

	static $oauth2Config = array (
			self::AUTHORIZEURL => 'AUTHORIZEURL',
			self::TOKENURL => 'TOKENURL',
			self::SCOPE => 'SCOPE',
	);
	static $oauth2Included = false;
	
	static public function get($path = null) {
		if (!static::$oauth2Included) {
			static::$config = array_merge(static::$oauth2Config, static::$config);
			static::$oauth2Included = true;
		}
	
		return parent::get($path);
	}
}